<!DOCTYPE html>
<HTML>
<HEAD>
	<title>Step 2</title>
    <?= $this->render("label/tpl1-header.phtml"); ?>
</HEAD>
<BODY>
  <div class="content">
    <div class="car-wrap">
      <h1>Based on the registration number you entered, these are the details we have for your car.</h1>
      <div class="car-image">
        <img src="/label/getImage?capid=<?= $this->vehicle['DATA']['CAP']['CAPID'] ?>">
      </div>
      <div class="car-info">
		<dl class="info-list">
  		  <dt>Registration:</dt>
    	  <dd><?= strtoupper($_POST['reg']) ?></dd>
  		  <dt>Manufacturer:</dt>
    	  <dd><?= $this->vehicle['DATA']['CAP']['MANUFACTURER'] ?></dd>
          <dt>Model:</dt>
    	  <dd><?= $this->vehicle['DATA']['CAP']['MODEL'] ?> <?= $this->vehicle['DATA']['CAP']['DERIVATIVE'] ?></dd>
          <dt>Model Year:</dt>
    	  <dd><?= $this->vehicle['DATA']['CAP']['MODELDATEDESC_LONG'] ?></dd>
          <dt>Transmission:</dt>
    	  <dd><?= $this->vehicle['DATA']['CAP']['TRANSMISSION'] ?></dd>
          <dt>Fuel Type:</dt>
    	  <dd><?= $this->vehicle['DATA']['CAP']['FUELTYPE'] ?></dd>
          <dt>Registration Date:</dt>
    	  <dd><?= date("Y-m-d", strtotime($this->vehicle['DATA']['DVLA']['REGISTRATIONDATE'])) ?></dd>
	    </dl>
	
		<div>
		  <form method="post">
		  	<input type="hidden" value="3" name="step">
			<input type="hidden" name="reg" value="<?= $_POST['reg'] ?>">
		    <input type="button" value="Not Your Car" class="error-button" style="">
	        <input type="submit" value="Continue" class="continue-button" style="">
		  </form>
		</div>
      </div>
    </div>
  </div>

<? if ($_GET['debug']): ?>
  <? dme($this->vehicle); ?>
<? endif; ?>

</BODY>
</HTML>
